import request from '@/utils/request'

//  场馆端商品分类编辑回显
export function goodsClassifyEditQuery(data) {
  return request({
    url: '/do?c=500006',
    method: 'post',
    data: data
  })
}

// 场馆端商品分类编辑保存
export function goodsClassifyEditSave(data) {
  return request({
    url: '/do?c=500007',
    method: 'post',
    data: data
  })
}
// 场馆端商品分类列表
export function goodsClassifyListVenue(data) {
  return request({
    url: '/do?c=500003',
    method: 'post',
    data: data
  })
}
// 场馆端商品分类删除
export function goodsClassifyRemove(data) {
  return request({
    url: '/do?c=500008',
    method: 'post',
    data: data
  })
}
// 添加商品分类
export function goodsClassifySave(data) {
  return request({
    url: '/do?c=500002',
    method: 'post',
    data: data
  })
}
// 场馆端商品折扣价查看
export function goodsDiscount(data) {
  return request({
    url: '/do?c=500005',
    method: 'post',
    data: data
  })
}
// 场馆端商品编辑回显
export function goodsEditQuery(data) {
  return request({
    url: '/do?c=500009',
    method: 'post',
    data: data
  })
}

// 场馆端商品编辑保存
export function goodsEditSave(data) {
  return request({
    url: '/do?c=500010',
    method: 'post',
    data: data
  })
}
// 场馆端商品列表
export function goodsListVenue(data) {
  return request({
    url: '/do?c=500004',
    method: 'post',
    data: data
  })
}
// 场馆端商品售卖列表
export function goodsOnSaleListVenue(data) {
  return request({
    url: '/do?c=500014',
    method: 'post',
    data: data
  })
}
// 场馆端商品结账
export function goodsPayForVenue(data) {
  return request({
    url: '/do?c=500015',
    method: 'post',
    data: data
  })
}
// 场馆端商品删除
export function goodsRemove(data) {
  return request({
    url: '/do?c=500013',
    method: 'post',
    data: data
  })
}
// 添加商品
export function goodsSave(data) {
  return request({
    url: '/do?c=500001',
    method: 'post',
    data: data
  })
}
// 场馆端商品上架
export function goodsStatusEdit(data) {
  return request({
    url: '/do?c=500011',
    method: 'post',
    data: data
  })
}
// 场馆端商品下架
export function goodsStatusEdit1(data) {
  return request({
    url: '/do?c=500012',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单列表
export function goodsOrderList(data) {
  return request({
    url: '/do?c=500016',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单列表 导出
export function GoodsOrderExport(data) {
  return request({
    url: '/do?c=500069',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单取消支付
export function goodsOrderCancelPay(data) {
  return request({
    url: '/do?c=500018',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单继续支付
export function goodsOrderContinuePay(data) {
  return request({
    url: '/do?c=500017',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单退款 POST /goodsFood/refoundOrder
export function refoundOrder(data) {
  return request({
    url: '/do?c=500067',
    method: 'post',
    data: data
  })
}
export function logisticStatus(data) {
  return request({
    url: '/do?c=900013',
    method: 'post',
    data: data
  })
}
// 场馆端商品 订单部分退款
export function GoodsOrderPRefund(data) {
  return request({
    url: '/do?c=500071',
    method: 'post',
    data: data
  })
}
// 场馆端商品订单再来一单 POST /goodsFood/readdOrder
export function readdOrder(data) {
  return request({
    url: '/do?c=500068',
    method: 'post',
    data: data
  })
}
// 商品批量导入模板
export function getGoodsTemplateExcel(data) {
  return request({
    url: '/do?c=500021',
    method: 'post',
    data: data
  })
}
// 商品批量导入
export function batchImportByExcel(data) {
  return request({
    url: '/do?c=500020',
    method: 'post',
    data: data
  })
}

// 根据条形码查询商品
export function queryByBarCode(data) {
  return request({
    url: '/do?c=500022',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goods/goodsTableList
 * @desc 餐位查询列表
 * @param {*} data
 * @returns
 */
export function goodsTableList(data) {
  return request({
    url: '/do?c=500030',
    method: 'post',
    data: data
  })
}
/**
 * @desc 删除餐位
 * @param {*} data
 * @returns
 */
export function goodsTableRemove(data) {
  return request({
    url: '/do?c=500034',
    method: 'post',
    data: data
  })
}

/**
 * @desc 新增餐位
 * @param {*} data
 * @returns
 */
export function goodsTableSave(data) {
  return request({
    url: '/do?c=500031',
    method: 'post',
    data: data
  })
}

/**
 * @desc 编辑餐位
 * @param {*} data
 * @returns
 */
export function goodsTableEdit(data) {
  return request({
    url: '/do?c=500033',
    method: 'post',
    data: data
  })
}

/**
 * @desc 餐位详情
 * @param {*} data
 * @returns
 */
export function goodsTableDetail(data) {
  return request({
    url: '/do?c=500032',
    method: 'post',
    data: data
  })
}

/**
 * @desc 获取餐位二维码
 * @param {*} data
 * @returns
 */
export function getQRCode(data) {
  return request({
    url: '/do?c=500047',
    method: 'post',
    data: data
  })
}

/**
 * @desc 餐位换桌
 * @param {*} data
 * @returns
 */
export function goodsTableExchange(data) {
  return request({
    url: '/do?c=500050',
    method: 'post',
    data: data
  })
}

/**
 * @desc 餐位恢复
 * @param {*} data
 * @returns
 */
export function goodsTableRecover(data) {
  return request({
    url: '/do?c=500049',
    method: 'post',
    data: data
  })
}

/**
 * @desc 餐位预约
 * @param {*} data
 * @returns
 */
export function makeAnAppointmen(data) {
  return request({
    url: '/do?c=500048',
    method: 'post',
    data: data
  })
}

/**
 * @desc 加入购物车（点餐）
 * @param {*} data
 * @returns
 */
export function addGoodsCarts(data) {
  return request({
    url: '/do?c=500045',
    method: 'post',
    data: data
  })
}
/**
 * @desc 购物车列表
 * @param {*} data
 * @returns
 */
export function goodsCartList(data) {
  return request({
    url: '/do?c=500054',
    method: 'post',
    data: data
  })
}

/**
 * @desc 清空购物车
 * @param {*} data
 * @returns
 */
export function clearGoodsCarts(data) {
  return request({
    url: '/do?c=500052',
    method: 'post',
    data: data
  })
}

/**
 * @desc 删除购物车记录
 * @param {*} data
 * @returns
 */
export function delGoodsCarts(data) {
  return request({
    url: '/do?c=500051',
    method: 'post',
    data: data
  })
}

/**
 * @desc 下单
 * @param {*} data
 * @returns
 */
export function goodsCartXD(data) {
  return request({
    url: '/do?c=500053',
    method: 'post',
    data: data
  })
}

/**
 * @desc 获取餐区列表
 * @param {*} data
 * @returns
 */
export function goodsAreaList(data) {
  return request({
    url: '/do?c=500025',
    method: 'post',
    data: data
  })
}

/**
 * @desc 编辑餐区
 * @param {*} data
 * @returns
 */
export function goodsAreaEdit(data) {
  return request({
    url: '/do?c=500028',
    method: 'post',
    data: data
  })
}

/**
 * @desc 删除餐区
 * @param {*} data
 * @returns
 */
export function goodsAreaDel(data) {
  return request({
    url: '/do?c=500029',
    method: 'post',
    data: data
  })
}

/**
 * @desc 新增餐区
 * @param {*} data
 * @returns
 */
export function goodsAreaAdd(data) {
  return request({
    url: '/do?c=500026',
    method: 'post',
    data: data
  })
}
// sku

/**
 * @desc 场馆端规格名称详情
 * @param {*} data
 * @returns
 */
export function goodsSkuNameEditQuery(data) {
  return request({
    url: '/do?c=500037',
    method: 'post',
    data: data
  })
}

/**
 * @desc 场馆端规格名称编辑
 * @param {*} data
 * @returns
 */
export function goodsSkuNameEditSave(data) {
  return request({
    url: '/do?c=500038',
    method: 'post',
    data: data
  })
}

/**
 * @desc 场馆端规格名称列表查询
 * @param {*} data
 * @returns
 */
export function goodsSkuNameList(data) {
  return request({
    url: '/do?c=500035',
    method: 'post',
    data: data
  })
}

/**
 * @desc 场馆端规格名称删除
 * @param {*} data
 * @returns
 */
export function goodsSkuNameRemove(data) {
  return request({
    url: '/do?c=500039',
    method: 'post',
    data: data
  })
}

/**
 * @desc 场馆端规格名称新增
 * @param {*} data
 * @returns
 */
export function goodsSkuNameSave(data) {
  return request({
    url: '/do?c=500036',
    method: 'post',
    data: data
  })
}

/**
 * @desc 场馆端规格值详情
 * @param {*} data
 * @returns
 */
export function goodsSkuValEditQuery(data) {
  return request({
    url: '/do?c=500042',
    method: 'post',
    data: data
  })
}
/**
 * @desc 场馆端规格值编辑
 * @param {*} data
 * @returns
 */
export function goodsSkuValEditSave(data) {
  return request({
    url: '/do?c=500043',
    method: 'post',
    data: data
  })
}
/**
 * @desc 场馆端规格值列表
 * @param {*} data
 * @returns
 */
export function goodsSkuValList(data) {
  return request({
    url: '/do?c=500040',
    method: 'post',
    data: data
  })
}
/**
 * @desc 场馆端规格值删除
 * @param {*} data
 * @returns
 */
export function goodsSkuValRemove(data) {
  return request({
    url: '/do?c=500044',
    method: 'post',
    data: data
  })
}
/**
 * @desc 场馆端规格值新增
 * @param {*} data
 * @returns
 */
export function goodsSkuValSave(data) {
  return request({
    url: '/do?c=500041',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantList2
 * @desc 餐厅列表
 * @param {*} data
 * @returns
 */
export function goodsRestaurantList2(data) {
  return request({
    url: '/do?c=501005',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantList
 * @desc 餐厅分页列表
 * @param {*} data
 * @returns
 */
export function goodsRestaurantList(data) {
  return request({
    url: '/do?c=501001',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantDel
 * @desc 删除餐厅信息
 * @param {*} data
 * @returns
 */
export function goodsRestaurantDel(data) {
  return request({
    url: '/do?c=501004',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantDel
 * @desc 新增餐厅信息
 * @param {*} data
 * @returns
 */
export function goodsRestaurantSave(data) {
  return request({
    url: '/do?c=501002',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantUpdate
 * @desc 更新餐厅信息
 * @param {*} data
 * @returns
 */
export function goodsRestaurantUpdate(data) {
  return request({
    url: '/do?c=501003',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantUpdateStatus
 * @desc 更新餐厅状态
 * @param {*} data
 * @returns
 */
export function goodsRestaurantUpdateStatus(data) {
  return request({
    url: '/do?c=501006',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goodsRestaurant/goodsRestaurantUserList
 * @desc 运营人员列表
 * @param {*} data
 * @returns
 */
export function goodsRestaurantUserList(data) {
  return request({
    url: '/do?c=1034',
    method: 'post',
    data: data
  })
}
// 商品管理 订单详情
export function goodsOrderDetail(data) {
  return request({
    url: '/do?c=500066',
    method: 'post',
    data: data
  })
}
/**
 * @method  /statistics/eatGoodsStatistics
 * @desc 点餐销售统计
 * @param {*} data
 * @returns
 */
export function eatGoodsStatistics(data) {
  return request({
    url: '/do?c=600015',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goods/eatGoodOrderDetials
 * @desc 点餐销售明细
 * @param {*} data
 * @returns
 */
export function eatGoodOrderDetials(data) {
  return request({
    url: '/do?c=500073',
    method: 'post',
    data: data
  })
}
/**
 * @method  /goods/eatGoodsOrderListExcel
 * @desc 场馆端点餐销售明细导出
 * @param {*} data
 * @returns
 */
export function eatGoodsOrderListExcel(data) {
  return request({
    url: '/do?c=500074',
    method: 'post',
    data: data
  })
}
export function goodsSendPost(data) {
  return request({
    url: '/do?c=500076',
    method: 'post',
    data: data
  })
}
